var grBuilding = new GlideRecord('x_lsmcb_fm_building');
grBuilding.query()
while (grBuilding.next()) {
    grBuilding.deleteRecord();
}

var grFloor = new GlideRecord('x_lsmcb_fm_floor');
grFloor.query()
while (grFloor.next()) {
    grFloor.deleteRecord();
}

var grRoom = new GlideRecord('x_lsmcb_fm_room');
grRoom.query()
while (grRoom.next()) {
    grRoom.deleteRecord();
}

var grVersion = new GlideRecord('x_lsmcb_fm_version');
grVersion.query()
while (grVersion.next()) {
    grVersion.deleteRecord();
}

var grLayer = new GlideRecord('x_lsmcb_fm_layer');
grLayer.query()
while (grLayer.next()) {
    grLayer.deleteRecord();
}